import Request from '@/utils/request/request-util';

/**
 * 后台管理 -病人api
 *
 */
export class PatientApi {
    /**
   * 分页
   * @param {*} params
   * @returns
   */
  static findPage(params) {
    return Request.getAndLoadData('/patients/page', params);
  }


  /**
   * 编辑
   * @param {*} params
   * @returns
   */
  static edit(params) {
    return Request.post('/patients/report', params);
  }
  static update(params) {
    return Request.post('/patients/temporarySave', params);
  }
  static save(params) {
    return Request.post('/patients/save', params);
  }

  /**
   * 详情
   * @param {*} params
   * @returns
   */
  static detail(params) {
    return Request.getAndLoadData('/hrPosition/detail', params);
  }
  static findDictList(params) {
    return Request.get('/dict/list', params);
  }
}